package com.labreeze.spring.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.labreeze.spring.dao.UserDao;
import com.labreeze.spring.pojo.User;

@Service("userService")
public class UserService {
	
	@Autowired
	private UserDao userDao;
	
	public User findById(int id){
		
		User user=null;
		user=userDao.query(id);
		return user;
		
	}
	

}
